<!--
 * @Description: 
 * @Author: liuzl
 * @Date: 2024-11-05 11:28:50
 * @LastEditors: liuzl
 * @LastEditTime: 2024-11-05 11:32:05
-->
<!--课程表-->
<!-- <table>..... </table>定义表格
<tr>......</tr>定义行
<td>.......</td>定义单元格
border="1"边框宽度

bgcolor="red" 表示背景为红色
width="100" height="500"表格的宽度和高度
rowspan="合并的单元格数量"
colspan="合并的单元格数量" -->

<!doctype html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>课程表</title>
    </head>
    <style>
        table{
            width: 45%;
            border-collapse: collapse;
            margin-top: 20px;
            table-layout: fixed;
            border: 1px solid #ccc;
        }
        th{
            background-color: #f2f2f2;
        }
        td{
            text-align: center;
            height: 40px;
            padding: 5px;
            width: auto;
            border-radius: 10px;
        }
        tr{
            height: 40px;
            border-bottom: 1px dashed #ccc;
        }
        .English{
            background-color: #d5a2aa;
        }
        .PE{
            background-color: #bcdde7;
        }
        .signal{
            background-color: #c8a997;
        }
        .situation{
            background-color: #b4e2ce;
        }
        .computer{
            background-color: #d3aed3;
        }
        .electric{
            background-color: #ebebbe;
        }
        .shixi{
            background-color: #a9e7e7;
        }
        .politic{
            background-color: #d5a2aa;
        }
        .ele{
            background-color: #a8a8f7;
        }
        .signal2{
            background-color: #d3aed3;
        }
        .xuanxiu{
            background-color: #def3c7;
        }
    </style>
    <body>
        <table  border="2" align="center" cellspacing="0">
            <table align="center">
                <tr>
                    <th></th>
                    <th>周一</th>
                    <th>周二</th>
                    <th>周三</th>
                    <th>周四</th>
                    <th>周五</th>
                </tr>
                <tr>
                    <td>1<br>8:30</td>
                    <td class="English" rowspan="2">大学英语（IV）10203</td>
                    <td></td>
                    <td class="PE" rowspan="2">大学体育（IV）</td>
                </tr>
                <tr>
                    <td>2<br>9:30</td>
                   
                </tr>
                <tr>
                    <td>3<br>10:30</td>
                    <td></td>
                    <td class="signal" rowspan="2">信号与系统（IV）@11302</td>
                    <td class="situation" rowspan="2">形势与政策（IV）@15208</td>
                    <td></td>
                    <td class="computer" rowspan="2">数据结构与算法分析（IV）</td>
        
                </tr>
                <tr>
                    <td>4<br>11:30</td>
                    
                </tr>
                <tr>
                    <td>5<br>12:30</td>
                    <td></td>
                    <td class="electric" rowspan="2">模拟电子技术基础@16204</td>
                    <td></td>
                    <td class="shixi" rowspan="2">电装实习@11301</td>
                </tr>
                <tr>
                    <td>6<br>14:30</td>
                    
                </tr>
                <tr>
                    <td>7<br>15:30</td>
                    <td class="politic" rowspan="2">毛概@14208</td>
                    <td></td>
                    <td class="ele" rowspan="2">电路、信号与系统实验</td>
                    <td></td>
                </tr>
                <tr>
                    <td>8<br>16:30</td>
                    
                </tr>
                <tr>
                    <td>9<br>17:30</td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td class="signal2" rowspan="2">信号与系统（IV）</td>
                </tr>
                <tr>
                    <td>10<br>18:30</td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td class="PE" rowspan="2">大学体育（IV）</td>
                </tr>
                <tr>
                    <td>11<br>19:30</td>
                </tr>
                <tr>
                    <td>12<br>20:30</td>
                    <td class="xuanxiu">选修</td>
                </tr>
            </table>
    
    </body>
</html>